import cn.hutool.core.lang.UUID;
import cn.hutool.crypto.digest.MD5;
import com.example.factory.api.utils.MD5Utils;


/**
 * @author Lei Tao
 */


public class HashCrypt {
    public static void main(String[] args) {

        MD5 md5 = MD5.create();
        String s = md5.digestHex16("123");
        byte[] digest = md5.digest(s);
        String m = new String(s);
        UUID uuid = UUID.fastUUID();
        String userPassword = MD5Utils.createUserPassword(s);
        System.out.println(userPassword);
        String userPassword1 = MD5Utils.getUserPassword(userPassword);
        System.out.println(userPassword1);

    }
}
